package com.only.webServer.content;

import com.only.webServer.request.HttpRequest;

import java.util.HashMap;
import java.util.Map;

/**
 * 根据Content-Type来处理不同的请求体
 */
public interface ContentTypeHandle {
    Map<String,ContentTypeHandle> handleMap= new HashMap<String,ContentTypeHandle>(){{
        put("application/x-www-form-urlencoded", new DefaultHandle());
    }};

    void handle(HttpRequest httpRequest, String body);
}
